<div class="bjui-pageContent" >
        <div data-layout-h="0">
                <!-- 内容区 -->
                <form action="{:U('Operating/linklist_add')}" class="pageForm nice-validator n-red" data-loadingmask='false' data-toggle="validate" novalidate="novalidate" data-reload-navtab="true" method="post" >
                        <input type="hidden" name="id" value="{$_GET.id|default=''}" />
                        <table class="table table-condensed table-hover">
                                <tr>
                                        <th ><label style='margin-left:40px;'>友链名称：</label></th>
                                        <td>
                                                <input type="text" name="name" data-rule='required' value="{$link.name|default=''}" />
                                        </td>

                                </tr>
                                <tr>
                                        <th><label style='margin-left:40px;'>友链地址：</label></th>
                                        <td>
                                                <input type="text" name="address" data-rule='required' value="{$link.address|default=''}" />
                                        </td>

                                </tr>
                                <tr>
                                        <th><label style='margin-left:40px;'>显示位置：</label></th>
                                        <td>
                                                <label><input type="checkbox" data-toggle='icheck' name="home" value="1" {eq name="link.home" value="1"}checked{/eq} data-label='站点首页' /></label>
                                                <label><input type="checkbox" data-toggle='icheck' name="line" value="1" {eq name="link.line" value="1"}checked{/eq} data-label='目的地页' /></label>
                                        </td>

                                </tr>
                                <tr>
                                        <th><label style='margin-left:40px;'>显示地区：</label></th>
                                        <td>
                                                <input type="hidden" name="locationtf.id"  value="{$link.zone|default=''}" />
                                                <input type="text" data-title='选择目的地' name="locationtf.name" value="{$link.zonename|default=''}" data-toggle="lookup" data-url="{:U('Pub/get_location_single')}" data-group="locationtf" data-width="300" data-height="400"  />
                                                <br/>
                                                <div class="alert alert-warning form-inline"><i class="fa fa-warning"></i> (只对内页有效)</div>
                                        </td>

                                </tr>
                        </table>
                </form>
        </div>

</div>
<div class="bjui-pageFooter" border='none'>
        <ul>
                <li><button type="button" class="btn btn-close">关闭</button></li>
                <li><button type="submit" class="btn btn-default">提交</button></li>
        </ul>
</div>